package com.zenithmind.library.pojo.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.time.LocalDate;

/**
 * 续借图书DTO
 * 
 * @author ZenithMind
 * @since 2024-06-14
 */
@Data
@Schema(name = "续借图书DTO", description = "续借图书时的数据传输对象")
public class RenewBookDTO {

    @NotBlank(message = "借阅记录ID不能为空")
    @Schema(description = "借阅记录ID", example = "1", required = true)
    private String borrowRecordId;

    @Schema(description = "续借天数（可选，使用系统默认值）", example = "30")
    private Integer renewDays;

    @Schema(description = "新的到期日期（可选，系统自动计算）", example = "2024-08-14")
    private LocalDate newDueDate;

    @Schema(description = "续借原因", example = "需要更多时间学习")
    private String renewReason;

    @Schema(description = "操作员ID", example = "admin")
    private String operatorId;
}
